@extends('layouts.admin')
@section('content')
	<style>
		.table tbody tr td{
			text-align:center;
		}
		.myformm{
			margin-left:20px;
			margin-bottom:-30px;
		}
		.myformm select{
			margin-top:10px;
		}
	</style>

		<div id="content-header">
			<h1>Tables</h1>
			<div class="btn-group">
				<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
				<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
				<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
				<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
			</div>
		</div>
		<div id="breadcrumb">
			<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
			<a href="#" class="current">Tables</a>
		</div>
		<div class="myformm">
		</div>
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
							<h5>帮帮列表</h5>
						</div>
						<div class="widget-content nopadding">
							<table class="table table-bordered table-striped">
								<thead>
								<tr>
									<th>帮帮ID</th>
									<th>问题</th>
									<th>解答</th>
									<th>操作</th>
								</tr>
								</thead>
								<tbody id="tbody">
								@foreach($help as $cate)
								<tr>
									<td>{{$cate->id}}</td>
									<td>{{$cate->why}}</td>
									<td>{{$cate->result}}</td>
									<td>
										<a href="{{url('admin/HelpEdit?id=').$cate->id}}"  class="btn btn-primary">修改</a>
										<a href="{{url('admin/HelpDel?id=').$cate->id}}"  class="btn btn-primary">删除</a>
									</td>
								</tr>
								@endforeach
								</tbody>
							</table>

						</div>
					</div>
				</div>
			</div>

			<div class="row-fluid">
				<div id="footer" class="span12">
					2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
				</div>
			</div>
		</div>
@endsection